import request from "@/utils/request";

//获取运费
export function getCarriagesApi() {
  return request({
    url: "/carriages",
  });
}

//新增和修改运费模板
export function postCarriagesApi(data) {
  return request({
    url: "/carriages",
    method: "post",
    data,
  });
}

//删除运费模板
export function delCarriagesApi(id) {
  return request({
    url: `/carriages/${id}`,
    method: "DELETE",
  });
}